﻿using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
namespace LitTools
{
    /// <summary>
    /// 鼠标触发
    /// 包括进入，悬浮，离开
    /// </summary>
    [DisallowMultipleComponent]
    public class MouseTriggerObserver : MonoBehaviour
    {
        public event Action OnMouseEnterAct;
        public event Action OnMouseOverAct;
        public event Action OnMouseExitAct;
        private void OnMouseEnter()
        {
            OnMouseEnterAct();
        }

        private void OnMouseOver()
        {
            OnMouseOverAct();
        }

        private void OnMouseExit()
        {
            OnMouseExitAct();
        }
    }
}